<?php 
namespace app\index\controller;
use think\Controller;
use think\Session;

//登录页面展示
class Base extends Controller{
	public function __construct(){
    	parent::__construct();
        $UserID = Session::get('userid');
        $UserName = Session::get('username');
        if (empty($UserID) || empty($UserName)) {
        	$this->redirect("Login/index");
        }else{
        	$this->assign('username',$UserName);
        	$this->assign('userid',$UserID);
        }
    }
}